<template>
	<view>
		<timelineItem :leftTime='items.date' v-for="(items,indexs) in ouoinf" :key="indexs">
			<view class="wiasdadadad">
				<view v-for="(item,index) in items.text" :key="index" class="aasdadadasdadadada"
					@click="getchadad(items.text,index)">
					<lazyLoad :src="item" width="175rpx" height="175rpx" borderRadius='16rpx'></lazyLoad>
				</view>
			</view>
		</timelineItem>
	</view>
</template>

<script>
	import timeline from '../../components/chenbin-timeline/timeLine.vue'
	import timelineItem from '../../components/chenbin-timeline/timelineItem.vue'
	import lazyLoad from '@/components/muqian-lazyLoad/muqian-lazyLoad.vue';
	export default {
		components: {
			timeline,
			timelineItem,
			lazyLoad
		},
		data() {
			return {
				ouoinf: [],
				page: 1
			}
		},
		onPullDownRefresh() {
			var that = this
			that.page = 1,
				that.ouoinf = [],
				that.getteam()
		},
		onReachBottom() {
			var that = this
			that.page++;
			that.getteam()
		},
		onLoad() {
			//查询团队风采
			this.getteam()
		},
		methods: {
			//查询团队风采
			async getteam() {
				var that = this;
				let data = await that.$api.getteam({
					page: that.page
				});
				uni.stopPullDownRefresh()
				if (data.code == 1) {
					that.ouoinf = [...that.ouoinf, ...data.data.data]
				} else {
					uni.showToast({
						title: data.msg,
						icon: "none"
					})
				}
			},
			getchadad(imageList, index) {
				var imsdList = []
				imsdList = imageList
				uni.previewImage({
					current: index,
					urls: imsdList // 所有可预览的图片地址数组
				});
			}
		}
	}
</script>

<style lang="scss">
	.wiasdadadad {
		width: 560rpx;
		display: flex;
		flex-wrap: wrap;

		.aasdadadasdadadada {
			margin-left: 12rpx;
			margin-bottom: 12rpx;
		}
	}
</style>